﻿
@using Kugar.UI.Web.AdminLTE
@model string

@{
    Layout = AdminLTEUI.LayoutPath.LayoutWithIFramePath_Content;
}


    <div class="error-page">
        <div class="error-content">
            <h3>
                <i class="fa fa-warning text-red" style="margin-right: 8px;"></i>
                正在跳转到登录页,请稍后................
            </h3>
        </div>
    </div>


<script>
    function crossCall(funcName, args, callback) {
        var callbackFuncID = "123456789";// getCrossCallback(callback);

        var json = {
            Message: "Call",
            FuncName: funcName,
            Args: args,
            Callback: {
                FuncID: callbackFuncID
            }
        }

        if (callbackFuncID > 0) {
            json.Callback = {
                FuncID: callbackFuncID
            }
        }

        window.parent.postMessage(JSON.stringify(json), "*");
    }
    //window.history.replaceState({}, "", '@ViewBag.Backurl');
    //debugger;
    try {

        if (self!=top) {
            crossCall("location.gotoUrl",
                {
                    gotoUrl: '@Model'
                });
        }
        else {
            window.location.href = '@Model';
        }
    } catch (e) {
        window.location.href = '@Model';
    }
    </script>
